﻿@model Nop.Admin.Models.WindAlert.WaveDataTableModel
@{
    var curDate = (DateTime)ViewBag.CurrentUserDateTime;
}

<div >
<h1>@curDate</h1>
<table>
    @foreach (Nop.Admin.Models.WindAlert.WaveDataRowModel row in Model.TableRows)
    { 
        <tr>
        <td>
            @if (curDate.AddHours(-1) > row.SpotAdjustedTime)
            {
                <span style="color:Red">@row.SpotAdjustedTime</span>
            }
            else
            {
                @row.SpotAdjustedTime
            }   
            
        </td>
            <td>
            @row.SpotName
        </td>
        <td>
            @row.Hmax
        </td>
        <td>
            @row.Hs
        </td>
        <td>
            @row.Direction
        </td>
        </tr>
    }
    </table>
</div>